LOCK PIXELS

This command will lock the current bitmap for faster reading and writing of visual data.

  Syntax
LOCK PIXELS
  Returns

This command does not return a value.

  Description

The DOT and POINT commands are considerably faster when wrapped within a LOCK/UNLOCK block of code. You can also use this command in combination with GET PIXELS POINTER to write directly to the memory storing the visual data.

  Example Code
LOCK PIXELS
DOT 10,10
UNLOCK PIXELS
WAIT KEY
  See also

BASIC2D Commands Menu
Index